<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ taglib prefix="thx" uri="/thx-tags"%>
<style>
.form-horizontal .form-group {
	margin-right: 0px;
	margin-left: 0px;
}
</style>


<form id="user-form" name="ui-adminlte-form" class="form-horizontal"
	data-toggle="validator" role="form" method="post"
	container = "div.right"
	action="${pageContext.request.contextPath}/information/vote!save.action"
	forward-action="${pageContext.request.contextPath}/information/vote!list.action?id=${pid}">
	<s:token></s:token>
	<input type="hidden" name="id" value="${entity.voteItemId}"/>
	<input type="hidden" name="pid" value="${pid}"/>
	<input type="hidden" name="message" value="${message}" />
	<input type="hidden" name='entity.voteItemId' value="${entity.voteItemId}">
	<input type="hidden" name='entity.infoId' value="${pid}">
	
	<div id="commons">
		<div class="row">
            <div class="col-md-12">
                <div class="form-group">
                 	<label>投票项名称</label> 
					<input type="text" name="entity.optionName"class="form-control required" placeholder="请输入名称" value="${entity.optionName}">
                </div>
            </div>
        </div>
	</div>
</form>
<script>
require(['jquery','form' ], function($,form) {
	form.init();
});
</script>


